import request from '@/utils/request'

// 查询pingjia列表
export function listPingjia(query) {
  return request({
    url: '/system/pingjia/list',
    method: 'get',
    params: query
  })
}

// 查询pingjia详细
export function getPingjia(id) {
  return request({
    url: '/system/pingjia/' + id,
    method: 'get'
  })
}

// 新增pingjia
export function addPingjia(data) {
  return request({
    url: '/system/pingjia',
    method: 'post',
    data: data
  })
}

// 修改pingjia
export function updatePingjia(data) {
  return request({
    url: '/system/pingjia',
    method: 'put',
    data: data
  })
}

// 删除pingjia
export function delPingjia(id) {
  return request({
    url: '/system/pingjia/' + id,
    method: 'delete'
  })
}
